<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/commons/taglibs.jsp" %>    
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<div class="site-content-box">
	<div class="search-head">
		<h3>查询关键字：<em>${keyword }</em></h3>
		<div class="page">
		
		</div>
		<div class="clean"></div>
	</div>
	<c:choose>
		<c:when test="${fn:length(page.result)>0}">
			<div class="search-list">
			<header>
			<div class="header">
				<ul>
					<li class="t1">商品图</li>
					<li class="t2">标题/掌柜/信用</li>
					<li class="t3">所在地</li>
					<li class="t4">成交记录</li>
					<li class="t5">淘宝价格</li>
				</ul>
				<div class="clean"></div>
			</div>
			</header>
			<article>
			<div class="item">
			<ul>
			<c:forEach items="${page.result}" var="item" varStatus="index">
				<li>
					<div class="pic">
						<img alt="" src="${item.picUrl }" width="85" height="85">
					</div>
					<div class="info">
						<h2><a href="${ctx }/item/${item.numIid}" target="_blank">${item.title }</a></h2>
						<span class="local">
							${item.itemLocation }
						</span>
						<span class="volume">
							${item.volume }
						</span>
						<span class="price">
							<span class="unit">&yen;</span>${item.price }
						</span>
					</div>
					<div class="seller">
						卖家：<a href="${ctx }/shop/${item.numIid}" target="_blank">${item.nick }</a>卖家信用等级: ${item.sellerCreditScore }
					</div>
				</li>
			</c:forEach>	
			</ul>
			<div class="clean"></div>
			</div>
			</article>
			<div class="pagination"><iary:page url="${ctx }/search" param="keyword=${keyword }&type=0"></iary:page></div>
		</div>
		</c:when>
		<c:otherwise>
			抱歉！没找到相关信息！
		</c:otherwise>
	</c:choose>
</div>

</body>
</html>